package com.webshooter.entity;

import com.webshooter.math.Vector;
import java.util.Date;

public class Entity {

    public enum GameLogicState {

        OBSERVE, ALIVE, DEAD;
    }

    public enum MovementState {

        STAND, FORWARD, FORWAR_RIGHT, RIGHT, RIGHT_BACKWARD, BACKWARD, BACKWARD_LEFT, LEFT, LEFT_FORWARD;
    }

    public Entity(String name) {
        this.name = name;
    }
    public String name;
    public Vector pos = new Vector();
    public int hitpoints = 100;
    public int deadTime = 0;
    public float angle = 0;
    // game logic states
    public MovementState moveState = MovementState.STAND;
    public GameLogicState gameLogicState = GameLogicState.OBSERVE;
    public Date lastShoot = new Date();
    // controlling
    public boolean strafeLeft = false;
    public boolean moveForward = false;
    public boolean strafeRight = false;
    public boolean moveBackward = false;
    public boolean mouseOne = false;
    public boolean mouseTwo = false;
    public boolean mouseThree = false;
}
